<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<script src="<%=path %>/admin/js/jquery.js" type="text/javascript"></script>
<script src="<%=path %>/admin/js/formValidator.js" type="text/javascript"></script>  
<script src="<%=path %>/admin/js/formValidatorRegex.js" type="text/javascript"></script>
<link href="<%=path %>/admin/css/validator.css" rel="stylesheet" type="text/css" />



<jsp:include flush="true" page="${basePath}/admin/head.jsp"></jsp:include>

 <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">添加管理员信息</h3>
            </div>
            <div class="panel-body" style="min-height: 500px;">
           <table style="width:100%;"><tr><td align="center">
          		<form  action="<%=path %>/admin_Add" method="post">

					  <table  style="width:98%;margin-left:10px;" align="center">
                    <tbody>
                    <tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>登录名:</td>
<td class="tbright"><div style="display:inline;float:left;">
<input name="txt_lname" type="text" id="txt_lname" style="width: 200px; " /></div><div id="txt_lnameTip" style="width:250px;display:inline;float:left;text-align:left;"></div>
 </td></tr>

<tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>密码:</td>
<td class="tbright"><div style="display:inline;float:left;">
<input name="txt_pwd" type="text" id="txt_pwd" style="width: 200px; " /></div><div id="txt_pwdTip" style="width:250px;display:inline;float:left;text-align:left;"></div>
 </td></tr>

<tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>姓名:</td>
<td class="tbright"><div style="display:inline;float:left;">
<input name="txt_aname" type="text" id="txt_aname" style="width: 200px; " /></div><div id="txt_anameTip" style="width:250px;display:inline;float:left;text-align:left;"></div>
 </td></tr>

<tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>性别:</td>
<td class="tbright"><div style="display:inline;float:left;">
<input type="radio" name="rtsex" value ="男" checked="checked"  />男
<input type="radio" name="rtsex" value ="女"   />女
 </td></tr>

<tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>手机号码:</td>
<td class="tbright"><div style="display:inline;float:left;">
<input name="txt_tel" type="text" id="txt_tel" style="width: 200px; " /></div><div id="txt_telTip" style="width:250px;display:inline;float:left;text-align:left;"></div>
 </td></tr>



    <tr>
        <td>&nbsp;</td>
        <td align="left">
        <input type="submit" name="btnAdd" value="添 加" onclick="return jQuery.formValidator.PageIsValid('1');" id="btnAdd"   class="btn btn-info" />
    <input name="btnReturn" type="button" value="返 回" class="btn btn-info"  onclick="location.href='<%=path %>/admin/admin/admin_Manage.jsp';"  />
    
               </td>
    </tr>
                    </tbody>
                </table>
			
    </form>
	   </td></tr></table>
            

            </div>
        </div>
	<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        $.formValidator.initConfig({ onError: function(msg) { alert(msg) } });
        $("#txt_lname").formValidator({ onshow: "请输入登录名", onfocus: "登录名不能为空", oncorrect: "合法" }).InputValidator({ min: 1, onerror: "登录名不能为空,请确认" });
        $("#txt_pwd").formValidator({ onshow: "请输入密码", onfocus: "密码不能为空", oncorrect: "合法" }).InputValidator({ min: 1, onerror: "密码不能为空,请确认" });
        $("#txt_aname").formValidator({ onshow: "请输入姓名", onfocus: "姓名不能为空", oncorrect: "合法" }).InputValidator({ min: 1, onerror: "姓名不能为空,请确认" });
        $("#txt_tel").formValidator({ onshow: "请输入手机号码", onfocus: "手机号码不能为空", oncorrect: "合法" }).InputValidator({ min: 1, onerror: "手机号码不能为空,请确认" });

    });
</script>








